package com.stars.questions.deptQuestion.config.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.stars.base.constants.CommonNumberConstants;
import com.stars.base.entity.BaseEntity;

/**
 * @author zhaoyh
 * 部门实体类
 */
@TableName("question_organizes")
public class Organizes extends BaseEntity {

    private String id;
    @TableField("ORGNAME")
    private String orgName;
    @TableField("STATUS")
    private int status;
    @TableField(exist = false)
    private boolean statusBoolean;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isStatusBoolean() {
        return CommonNumberConstants.ONE_NUM == this.status;
    }

    public void setStatusBoolean(boolean statusBoolean) {
        if(statusBoolean){
            this.status = 1;
        }else{
            this.status = 0;
        }
        this.statusBoolean = statusBoolean;
    }
}
